package session.stateful;

import entity.TouristAccountEntity;
import javax.ejb.Stateful;
import javax.ejb.LocalBean;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@Stateful
@LocalBean
public class VisitorSessionBean {
    @PersistenceContext
    EntityManager entityManager;
    
    public TouristAccountEntity retrieveVisitorInfoById(long visitorId) {
        return entityManager.find(TouristAccountEntity.class, visitorId);
    }


    
}
